import request from '@/utils/request'

// 查询策略消息字段列表
export function listStrategyField(query) {
  return request({
    url: '/message/strategyField/list',
    method: 'get',
    params: query
  })
}

// 查询策略消息字段详细
export function getStrategyField(id) {
  return request({
    url: '/message/strategyField/' + id,
    method: 'get'
  })
}

// 新增策略消息字段
export function addStrategyField(data) {
  return request({
    url: '/message/strategyField',
    method: 'post',
    data: data
  })
}

// 修改策略消息字段
export function updateStrategyField(data) {
  return request({
    url: '/message/strategyField',
    method: 'put',
    data: data
  })
}

// 删除策略消息字段
export function delStrategyField(id) {
  return request({
    url: '/message/strategyField/' + id,
    method: 'delete'
  })
}
